@import 'variables';

.icon-android {
  color: #8bc34a;
}

.icon-xiaomi {
  color: #ff6700;
}

.xx-input {
  @height: 25px;

  background: transparent;
  border: 1px solid #ccc;
  outline: none;
  height: @height;
  line-height: @height;
  box-sizing: border-box;
  color: #fff;
  font-weight: bold;
  padding: 0 10px;
  letter-spacing: 0.7px;
  transition: all 0.2s;

  &::placeholder {
    color: rgba(@global-font-color, 0.8);
  }

  &:focus {
    box-shadow: 0 0 5px @color-primray;
    border-color: @color-primray;
  }

  &:disabled {
    border-color: rgba(#ccc, 0.6);
    cursor: not-allowed;
    color: @global-font-disabled-color;
  }
}

.xx-button {
  outline: none;
  padding: 5px 20px;
  cursor: pointer;
  border: 1px solid #d9d9d9;
  background: transparent;
  color: @global-font-color;
  transition: all 0.2s;

  &:hover {
    color: @color-primray;
    border-color: @color-primray;
  }

  &:disabled {
    cursor: not-allowed;
    background: #ddd;
  }
}

@keyframes turn {
  0% {
    -webkit-transform: rotate(0deg);
  }
  25% {
    -webkit-transform: rotate(90deg);
  }
  50% {
    -webkit-transform: rotate(180deg);
  }
  75% {
    -webkit-transform: rotate(270deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

.turning {
  animation: turn 1s infinite linear;
}
